<h2>Edit Image Toolkit</h2>
<div class="content-inner">
  <?php
  	$image_toolkit = unserialize($setting['image_toolkit']);
  	$quanlity = isset($image_toolkit['quanlity']) ? $image_toolkit['quanlity'] : "75";
  	$filetype = isset($image_toolkit['filetype']) ? $image_toolkit['filetype'] : "*.jpg;*.png;*.gif";
  	$max_size = isset($image_toolkit['max_size']) ? $image_toolkit['max_size'] : "2048";
  	$thumb_width = isset($image_toolkit['thumb_width']) ? $image_toolkit['thumb_width'] : "120";
  	$thumb_height = isset($image_toolkit['thumb_height']) ? $image_toolkit['thumb_height'] : "80";
  	$medium_width = isset($image_toolkit['medium_width']) ? $image_toolkit['medium_width'] : "240";
  	$medium_height = isset($image_toolkit['medium_height']) ? $image_toolkit['medium_height'] : "240";
  	$large_width = isset($image_toolkit['large_width']) ? $image_toolkit['large_width'] : "1600";
  	$large_height = isset($image_toolkit['large_height']) ? $image_toolkit['large_height'] : "1200";
  ?>
  <form action="<?=site_url(array('c' => 'cms_settings', 'm' => 'edit_image_toolkit', 'id' => $setting['id']))?>" enctype="multipart/form-data" method="post">
  <table width="500" border="0" cellspacing="0" cellpadding="0" class="form-table">
    <tbody>
      <tr>
        <th>Quanlity:</th>
        <td><input type="text" name="item_quantity" value="<?=$quanlity?>" size="10" maxlength="5" class="input-tiny"/> %</td>
      </tr>
      <tr>
        <th>FileType allow:</th>
        <td><input type="text" name="item_filetype" value="<?=$filetype?>" size="20" maxlength="64" class="input-small"/></td>
        <td><span>*.jpg;*.png;*.gif</span></td>
      </tr>
      <tr>
        <th>Max size:</th>
        <td><input type="text" name="item_max_size" value="<?=$max_size?>" size="20" maxlength="64" class="input-small"/></td>
        <td><span>Kb</span></td>
      </tr>
      <tr>
        <th nowrap="nowrap">Thumbnail Size:</th>
        <td>
        	<input type="text" name="item_thumb_width" value="<?=$thumb_width?>" size="10" maxlength="5" class="input-tiny"/> x
        	<input type="text" name="item_thumb_height" value="<?=$thumb_height?>" size="10" maxlength="5" class="input-tiny"/></td>
        <td><span>Width x Height</span></td>
      </tr>
      <tr>
        <th>Medium Size:</th>
        <td>
        	<input type="text" name="item_medium_width" value="<?=$medium_width?>" size="10" maxlength="5" class="input-tiny"/> x
        	<input type="text" name="item_medium_height" value="<?=$medium_height?>" size="10" maxlength="5" class="input-tiny"/>
        </td>
        <td><span>Width x Height</span></td>
      </tr>
      <tr>
        <th>Large Size:</th>
        <td>
        	<input type="text" name="item_large_width" value="<?=$large_width?>" size="10" maxlength="5" class="input-tiny"/> x
        	<input type="text" name="item_large_height" value="<?=$large_height?>" size="10" maxlength="5" class="input-tiny"/>
        </td>
        <td><span>Width x Height</span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <br/>
          <input type="button" class="input-button" onClick="javascript:history.back();" value="Cancel">
          <input name="Submit" type="submit" class="ins" value="Save"></td>
      </tr>
    </tbody>
  </table>
  </form>
</div>